class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :title
      t.decimal :price,:precision=>8,:scale=>2,:default=>1.00
      t.text :description
      t.string :img_url
      t.integer :amount,:precision=>8,:default=>1
      t.integer :shop_id

      t.timestamps
    end
  end

  def self.down
    drop_table :products
  end
end
